{% extends "blog/themes/%s/base.html" % config.theme %}
{% block title %}{{post.title|escape}} - {{config.blog_name}}{% endblock %}
{% block body %}
  <h2>{{post.title|escape}}</h2>
    <p class="post-info">
      Posted by {{config.author_name}}
      {% if post.tags %}
        | Filed under
        {% for tag in post.tag_pairs %}
          <a href="/tag/{{tag[1]|e}}">{{tag[0]|e}}</a>{% if not loop.last %},{% endif %}
        {% endfor %}
      {% endif %}
    </p>
  {{post.body|safe}}
  <p class="postmeta">
    <span class="date">{{post.published|date("%d %B, %Y")}}</span>
  </p>
  
  {% if config.disqus_forum %}
    <h3 id="comments">Comments</h3>
    <div id="disqus_thread"></div>
    {% if config.devel %}
      <script type="text/javascript">
        disqus_developer = 1;
      </script>
    {% endif %}
    <script type="text/javascript" src="http://disqus.com/forums/{{config.disqus_forum}}/embed.js"></script>
    <noscript><a href="http://disqus.com/forums/{{config.disqus_forum}}/?url=ref">View the discussion thread.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
  {% endif %}
{% endblock %}
